package com.cskaoyan.controller;

import com.cskaoyan.bean.AddressExample;
import com.cskaoyan.service.AddressService;
import com.cskaoyan.vo.AddressVo;
import com.cskaoyan.vo.BaseRespVo;
import com.github.pagehelper.PageHelper;
import javafx.print.PageLayout;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: libugu@cskaoyan.com
 * @date 2021/4/9 - 17:35
 */
@RestController
public class AddressController {


    @Autowired
    AddressService addressService;

    @RequestMapping("admin/address/list")
    public BaseRespVo list(Integer page,Integer limit,String sort, String order){

        AddressVo addressVo =  addressService.qurey(page,limit,sort,order);

        return BaseRespVo.ok(addressVo);

    }
}
